﻿/*----------------------------------------------------------------
// Copyright (C) 2015 HYBY
//
// 文件名：        TAModular.cs
// 文件功能描述：   基础表，模块设定表
//
// 
// 创建标识：      吕天瑞 2016-06-07
//
// 修改标识：
// 修改描述： 
// 
// 备注：	
// 				
//----------------------------------------------------------------*/

using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using HYBY.Task.DataEntity;
using HYBY.Task.Repository;
using HYBY.Task.Service.IService;


namespace HYBY.Task.Service
{
    public partial class TAModularService : BaseService<TAModularRepository, TAModularEntity>, ITAModularService
    {

        public List<TAModularEntity> GetTAModulars()
        {
            return Repository.GetTAModulars();
        }

        /// <summary>
        /// 分页方式返回基础表，模块设定表
        /// </summary>
        /// <param name="PageIndex">页面索引</param>
        /// <param name="PageSize">页面大小</param>
        /// <param name="RecordCount">总记录数</param>
        /// <returns></returns>
        public List<TAModularEntity> GetTAModulars(int pageIndex, int pageSize, out int recordCount)
        {
            return Repository.GetTAModulars(pageIndex, pageSize, out recordCount);
        }

        /// <summary>
        /// 根据检索条件以分页方式返回基础表，模块设定表
        /// </summary>
        /// <param name="Search">分页及检索条件</param>
        /// <param name="RecordCount">总记录数据</param>
        /// <returns></returns>
        public List<TAModularEntity> GetTAModulars(PageAndSearchInfo search, out int recordCount)
        {
            return GetTAModulars(search.PageIndex, search.PageSize, out recordCount);
        }

        /// <summary>
        /// 扩展查询子集
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        public List<TAModularEntity> GetTAModularByWhere(TAModularEntity entity)
        {
            return Repository.GetTAModularByWhere(entity);
        }
    }
}
